package cn.fsd.mapper;

import cn.fsd.domain.Storeroom_commodity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface Storeroom_commodityMapper {
    int deleteByPrimaryKey(@Param("commodity_id") String commodity_id, @Param("storeroom_id") String storeroom_id);

    int insert(Storeroom_commodity record);

    Storeroom_commodity selectByPrimaryKey(@Param("commodity_id") String commodity_id, @Param("storeroom_id") String storeroom_id);

    List<Storeroom_commodity> selectAll();

    int updateByPrimaryKey(Storeroom_commodity record);

    Integer getMaxLimitation(String storeroom_id, String commodity_id);
}